import yaml

print(yaml.safe_load(open('test2.yml', 'r')))